// 导入封装好的网络请求类工具
import request from "./request";
import qs from "qs";

// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);
// 查询主办名称
export const getName = (params) =>
    request.post("/api/denglu/getname", qs.stringify(params));
// 修改主办名称
export const amendName = (params) =>
    request.post("/api/denglu/add", qs.stringify(params));
// 获取pc 图片
export const getImgPc = (params) =>
    request.post("/api/denglu/getimgpc", qs.stringify(params));
// 获取移动 图片
export const getImgYd = (params) =>
    request.post("/api/denglu/getimgyd", qs.stringify(params));
// 添加图片
export const loginAddImg = (params) =>
    request.post("/api/denglu/addimg", qs.stringify(params));
// 删除图片
export const DelImg = (params) =>
    request.post("/api/denglu/del", qs.stringify(params));
// 登录
export const login = (params) =>
    request.post("/api/user/login", qs.stringify(params));
// 退出
export const sign_out = (params) =>
    request.post("/api/user/logout", qs.stringify(params));
// 个人信息
export const userInfo = (params) =>
    request.post("/api/user/info", qs.stringify(params));
// 临时删除上传文件
export const uploadRemove = (params) =>
    request.post("/api/project/remove", qs.stringify(params));
// 创建任务
export const addTask = (params) =>
    request.post("/api/project/add", qs.stringify(params));
// 获取分类
export const userCate = (params) =>
    request.post("/api/project/cate", qs.stringify(params));
// 获取单位
export const userUnit = (params) =>
    request.post("/api/project/unit", qs.stringify(params));
// 统计中获取部分单位接口
// 获取单位
export const getunit = (params) =>
    request.post("/api/project/getunit", qs.stringify(params));
// 获取全部单位
export const userUnits = (params) =>
    request.post("/api/project/units", qs.stringify(params));
// 获取镇街下级的所有数据api/Statistics/zhenjie
export const zjUnits = (params) =>
    request.post("/api/Statistics/zhenjie", qs.stringify(params));
// 项目列表
export const projecList = (params) =>
    request.post("/api/project/list", qs.stringify(params));
// 任务详情
export const taskDetails = (params) =>
    request.post("/api/project/detail", qs.stringify(params));
// 反馈
export const survey = (params) =>
    request.post("/api/project/survey", qs.stringify(params));
// 删除项目
export const taskDelete = (params) =>
    request.post("/api/project/del", qs.stringify(params));
// 新闻添加
export const addNew = (params) =>
    request.post("/api/News/add", qs.stringify(params));
// 新闻分类
export const newclass = (params) =>
    request.post("/api/News/optionsList", qs.stringify(params));
// 新闻分类
export const editTask = (params) =>
    request.post("/api/project/edit", qs.stringify(params));
// 新闻列表查询
export const newList = (params) =>
    request.post("/api/News/list", qs.stringify(params));
// 新闻详情
export const newQuery = (params) =>
    request.post("/api/News/query", qs.stringify(params));
// 新闻删除
export const newDel = (params) =>
    request.post("/api/News/del", qs.stringify(params));
// 新闻编辑
export const newEdit = (params) =>
    request.post("/api/News/edit", qs.stringify(params));
// 用户列表
export const userList = (params) =>
    request.post("/api/user/list", qs.stringify(params));
// 用户添加
export const register = (params) =>
    request.post("/api/user/register", qs.stringify(params));
// 用户编辑
export const userEdit = (params) =>
    request.post("/api/user/edit", qs.stringify(params));
// 用户删除
export const userDel = (params) =>
    request.post("/api/user/del", qs.stringify(params));
// 修改个人信息
export const editUserinfo = (params) =>
    request.post("/api/user/userinfo", qs.stringify(params));
// 修改密码
export const editpass = (params) =>
    request.post("/api/user/editpass", qs.stringify(params));
// 网站配置
export const allocation = (params) =>
    request.post("/api/configs/allocation", qs.stringify(params));
// 新增事项清单
export const itemName = (params) =>
    request.post("/api/project/itemName", qs.stringify(params));
// 事项清单删除
export const itemNameDel = (params) =>
    request.post("/api/project/itemNameDel", qs.stringify(params));
// 查看事项清单
export const itemNameList = (params) =>
    request.post("/api/project/itemNameList", qs.stringify(params));
// 查看事项清单
export const itemNameQuery = (params) =>
    request.post("/api/project/itemNameQuery", qs.stringify(params));
// 新闻分类添加
export const newsCatAdd = (params) =>
    request.post("/api/News/newsCatAdd", qs.stringify(params));
// 获取主分类 子分类
export const optionsList = (params) =>
    request.post("/api/News/optionsList", qs.stringify(params));
// 删除分类
export const optionsDel = (params) =>
    request.post("/api/News/optionsDel", qs.stringify(params));
// 查看分类
export const optionsQuery = (params) =>
    request.post("/api/News/optionsQuery", qs.stringify(params));
// 发布任务
export const publishListOf = (params) =>
    request.post("/api/project/publishListOf", qs.stringify(params));
// 评价
export const appraise = (params) =>
    request.post("/api/project/appraise", qs.stringify(params));
// 统计
export const statistics = (params) =>
    request.post("/api/statistics/list", qs.stringify(params));
// 统计页面
export const statisticslistA = (params) =>
    request.post("/api/Statistics/listA", qs.stringify(params));
// 统计页面 统计数据
export const statisticInfo = (params) =>
    request.get("/api/Statistics/zxlist", params);

// 驳回内容
export const logsList = (params) =>
    request.post("/api/project/project_logs_list", qs.stringify(params));
// 重新提交
export const projectstatusAdd = (params) =>
    request.post("/api/project/statusAdd", qs.stringify(params));
// 更改de信息
export const projectstatus = (params) =>
    request.post("/api/project/status", qs.stringify(params));
// 对话框
export const projectAdd = (params) =>
    request.post("/api/project/project_logs_add", qs.stringify(params));
// 导出
export const commenttext = (params) =>
    request.get("/api/statistics/text", params);
// 事项类别
export const apiclasslist = (params) =>
    request.post("/api/project/classlist", params);
// 新增事项类别
export const projectclass = (params) =>
    request.post("/api/project/class", params);
// 事项分类删除
export const classDeld = (params) =>
    request.post("/api/project/classDel", params);
export const userquery = (params) => request.post("api/user/query", params);

// 获取单位
export const userdepe = (params) =>
    request.post("/api/user/unit", qs.stringify(params));
// 事项主分类获取
export const classAlld = (params) =>
    request.post("/api/project/classAll", params);
// 子分类
export const apiassociat = (params) =>
    request.post("/api/project/associat", params);
export const projectmain = (params) =>
    request.post("/api/project/main", params);

// 子账号发布
export const projectvarAdd = (params) =>
    request.post("/api/project/varAdd", params);
// 发布查看
export const varList = (params) => request.post("/api/project/varList", params);
// 驳回
export const projectreject = (params) =>
    request.post("/api/project/reject", params);
export const varEdit = (params) => request.post("/api/project/varEdit", params);

// 地区
export const deptlist = (params) => request.post("/api/dept/list", params);

export const newPorj = (params) => request.post("/api/project/newPorj", params);

export const deptcreate = (params) =>
    request.post("/api/dept/create", qs.stringify(params));
export const deptedit = (params) =>
    request.post("/api/dept/edit", qs.stringify(params));
export const deptinfo = (params) =>
    request.post("/api/dept/info", qs.stringify(params));

// 创建任务
export const taskCreate = (params) =>
    request.post("/api/task/create", qs.stringify(params));

export const tblist = (params) =>
    request.post("/api/dept/tblist", qs.stringify(params));
// 对被驳回的任务重新进行转发分配
export const anewTransmit = (params) => request.post("/api/project/xiugai", qs.stringify(params));
    